module.exports = {
  outputDir: "dist",
  devServer: {
    open: false,
    host: "0.0.0.0",
    port: 8089,
    https: false,
    hotOnly: false,
    disableHostCheck: true,
    proxy: {
      "/api": {
        target: "http://47.104.15.124/",
        ws: false,
        changeOrigin: true,
        // 路径过滤
        pathRewrite: {
          "^/api": "/"
        }
      },
      "/captcha.jpg": {
        target: "http://47.104.15.124/",
        ws: false,
        changeOrigin: true
      },
      "/logout": {
        target: "http://47.104.15.124/",
        ws: false,
        changeOrigin: true,
      },
    }
  }
};
